package com.eastelsoft.smartiot.bssserver.service.impl;

import com.eastelsoft.smartiot.bssserver.dao.TCmAppInfoMapper;
import com.eastelsoft.smartiot.bssserver.domain.TCmAppInfo;
import com.eastelsoft.smartiot.bssserver.service.TAppInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@SuppressWarnings("ALL")
@Service
public class TAppInfoServiceImpl implements TAppInfoService {
    @Autowired
    private TCmAppInfoMapper tCmAppInfoMapper;
    @Override
    public TCmAppInfo findByAppId(String appId) {
        // TODO Auto-generated method stub
        return tCmAppInfoMapper.selectByPrimaryKey(appId);
    }

    @Override
    public TCmAppInfo findByAppIdAndAppSecret(String appId, String appKey) {
        // TODO Auto-generated method stub
        return tCmAppInfoMapper.selectByAppIdAndAppKey(appId,appKey);
    }
}
